//
//  UITextField+catrgory.m
//  xiaohu
//
//  Created by 刘璇 on 2017/11/21.
//  Copyright © 2017年 iOSOneGpowerMobile. All rights reserved.
//

#import "UITextField+catrgory.h"

@implementation UITextField (catrgory)

-(void)setTextFieldLeftPadding:(UITextField *)textField forWidth:(CGFloat)leftWidth
{
    CGRect frame = textField.frame;
    frame.size.width = leftWidth;
    UIView *leftview = [[UIView alloc] initWithFrame:frame];
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = leftview;
}



@end
